var sz_ShareFactory = {
    config: function (appId, url) {
        if (sz_BrowserHelper.isATB()) {
            sz_WeChatATBShare.config();
            return;
        }
        if (sz_BrowserHelper.isWeChat()) {
            if (sz_BrowserHelper.isOther()) {
                sz_WeChatOtherShare.config();
                return;
            } else {
                sz_WeChatCambioShare.config();
                return;
            }
        }
        if (sz_BrowserHelper.isMicroBenefits()) {
            mbCiqShare.config();
            return;
        }
    },
    share: function (shareUri, shareDesc, shareImageUri, shareTitle) {
        if (sz_BrowserHelper.isWeChat()) {
            if (sz_BrowserHelper.isATB()) {
                // sz_WeChatATBShare.config();
                shareUri = sz_RequestHelper.addParam(shareUri, $sz_Constants.REQUEST_TOKEN, 'ATB');
                shareUri = sz_RequestHelper.addParam(shareUri, $sz_Constants.SHARE_USER_ID, sz_ConstantsService.getItem($sz_Constants.USER_ID));
                shareUri = sz_RequestHelper.addParam(shareUri, $sz_Constants.VALID_TIME, new Date().getTime());
                sz_WeChatShareService.share(wx, shareUri, shareDesc, shareImageUri, shareTitle);
            } else if (sz_BrowserHelper.isOther()) {
                // sz_WeChatOtherShare.config();
            } else {
                sz_WeChatShareService.share(wx, shareUri, shareDesc, shareImageUri, shareTitle);
            }
        }
        if (sz_BrowserHelper.isMicroBenefits()) {
            // mbCiqShare.config();
        }

        //sz_WeChatShareService.share(wx, shareUri, shareDesc, shareImageUri, shareTitle);
    }
}

var shareFactory = sz_ShareFactory;